home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1561 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: lrz-muenchen.de!sun2!ua302aa
  2. From: ua302aa@sun2.lrz-muenchen.de (Kurt Watzka)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Question!@#!
  5. Date: 15 Jan 1996 13:50:40 GMT
  6. Organization: Leibniz-Rechenzentrum, Muenchen (Germany)
  7. Distribution: world
  8. Message-ID: <4ddm3g$bvo@sparcserver.lrz-muenchen.de>
  9. References: <4dcejq$2un@venus.senecac.on.ca>
  10. NNTP-Posting-Host: sun2.lrz-muenchen.de
  11.  
  12. cweselak@learn.senecac.on.ca (Christian Weselak) writes:
  13.  
  14.  
  15. >I have a very Simple question.. well, it should be simple for 'alot' of 
  16. >you reading this newsgroup..
  17.  
  18. >anyways.
  19.  
  20. >I have created a program that asks THE users for his name, then writes it 
  21. >to a file, the file is called name.txt..
  22.  
  23. >Evertime this program is executed, the file name.txt get's overwritten.
  24.  
  25. >How can i keep this file, name.txt, so that i can eventually have a 
  26. >listing of all users who ran my program???
  27.  
  28. Have a look at the documentation of fopen(), esp. the "a" mode
  29. for _appending_ to an existing file.
  30.  
  31. Kurt
  32. --
  33. | Kurt Watzka                             Phone : +49-89-2180-6254
  34. | watzka@stat.uni-muenchen.de
  35. | ua302aa@sunmail.lrz-muenchen.de
  36.